#!/opt/homebrew/bin/python3.9

# pip3.9 install opencv-python
# pip3.9 install opencv-crontrib-python

import cv2
import numpy as np

im = cv2.imread(r'./datacv/短图1.jpg')
print(im.shape)
cv2.imshow('image', im)
cv2.imwrite(r'./datacv/短图xxx.jpg', im)


im = np.zeros((300,800, 3), dtype=np.uint8)
im = cv2.line(im, (0,200), (800,200), (0,0,255),2)
cv2.imshow('Image', im)















